# eric7.Plugins.VcsPlugins.vcsPySvn.SvnRepoBrowserDialog

Module implementing the subversion repository browser dialog.

### Global Attributes

None

### Classes

SvnRepoBrowserDialog | Class implementing the subversion repository browser dialog.

### Functions

None

## SvnRepoBrowserDialog

Class implementing the subversion repository browser dialog.

### Derived from

QDialog, SvnDialogMixin, Ui_SvnRepoBrowserDialog

### Class Attributes

None

### Class Methods

None

### Methods

SvnRepoBrowserDialog | Constructor
__generateItem | Private method to generate a tree item in the repository tree.
__listRepo | Private method to perform the svn list command.
__normalizeUrl | Private method to normalite the url.
__resizeColumns | Private method to resize the tree columns.
__resort | Private method to resort the tree.
__showError | Private slot to show an error message.
accept | Public slot called when the dialog is accepted.
getSelectedUrl | Public method to retrieve the selected repository URL.
on_repoTree_itemCollapsed | Private slot called when an item is collapsed.
on_repoTree_itemExpanded | Private slot called when an item is expanded.
on_repoTree_itemSelectionChanged | Private slot called when the selection changes.
on_urlCombo_currentIndexChanged | Private slot called, when a new repository URL is entered or selected.
start | Public slot to start the svn info command.

### Static Methods

None

#### SvnRepoBrowserDialog (Constructor)

SvnRepoBrowserDialog(vcs, mode="browse", parent=None)

Constructor

vcs (Subversion)
  reference to the vcs object
mode (str)
  mode of the dialog ("browse" or "select")
parent (QWidget)
  parent widget

#### SvnRepoBrowserDialog.__generateItem

__generateItem(parent, repopath, revision, author, size, date, nodekind, url)

Private method to generate a tree item in the repository tree.

parent (QTreeWidget or QTreeWidgetItem)
  parent of the item to be created
repopath (str)
  path of the item
revision (str or pysvn.opt_revision_kind)
  revision info
author (str)
  author info
size (int)
  size info
date (int)
  date info
nodekind (pysvn.node_kind)
  node kind info
url (str)
  url of the entry

Return:
  reference to the generated item

Return Type:
  QTreeWidgetItem

#### SvnRepoBrowserDialog.__listRepo

__listRepo(url, parent=None)

Private method to perform the svn list command.

url (str)
  the repository URL to browser
parent (QTreeWidget or QTreeWidgetItem)
  reference to the item, the data should be appended to

#### SvnRepoBrowserDialog.__normalizeUrl

__normalizeUrl(url)

Private method to normalite the url.

url (str)
  the url to normalize

Return:
  normalized URL

Return Type:
  str

#### SvnRepoBrowserDialog.__resizeColumns

__resizeColumns()

Private method to resize the tree columns.

#### SvnRepoBrowserDialog.__resort

__resort()

Private method to resort the tree.

#### SvnRepoBrowserDialog.__showError

__showError(msg)

Private slot to show an error message.

msg (str)
  error message to show

#### SvnRepoBrowserDialog.accept

accept()

Public slot called when the dialog is accepted.

#### SvnRepoBrowserDialog.getSelectedUrl

getSelectedUrl()

Public method to retrieve the selected repository URL.

Return:
  the selected repository URL

Return Type:
  str

#### SvnRepoBrowserDialog.on_repoTree_itemCollapsed

on_repoTree_itemCollapsed(item)

Private slot called when an item is collapsed.

item (QTreeWidgetItem)
  reference to the item to be collapsed

#### SvnRepoBrowserDialog.on_repoTree_itemExpanded

on_repoTree_itemExpanded(item)

Private slot called when an item is expanded.

item (QTreeWidgetItem)
  reference to the item to be expanded

#### SvnRepoBrowserDialog.on_repoTree_itemSelectionChanged

on_repoTree_itemSelectionChanged()

Private slot called when the selection changes.

#### SvnRepoBrowserDialog.on_urlCombo_currentIndexChanged

on_urlCombo_currentIndexChanged(index)

Private slot called, when a new repository URL is entered or selected.

index (int)
  of the current item

#### SvnRepoBrowserDialog.start

start(url)

Public slot to start the svn info command.

url (str)
  the repository URL to browser

Up